package com.sunwhite.codeidea.innerclass.topic;

public class TopicTest {

  public static void main(String[] args) {
    //
      TopicTest topicTest = new TopicTest();
      topicTest.test();
  }

    private class ZhangSan implements Person{
        @Override
        public Person eat() {
             System.out.println(this);
            return this;
        }
    }


    public void  test(){
        Person zhangSan = new ZhangSan();
        Person person = zhangSan.eat();
        ZhangSan person1 = (ZhangSan) person;
        person1.eat();
    }
}
